import { ConfigProvider, message } from 'antd';
import { useRoutes } from 'react-router-dom'
import routerList from './router'
import 'dayjs/locale/zh-cn';
import zhCN from "antd/locale/zh_CN"

const App = () => {
  // 添加路由表
  const router = useRoutes(routerList);


  return (
    <ConfigProvider locale={zhCN} >

        {router}

    </ConfigProvider>
  )
}



export default App